package top.wxdfun.sqlwr.service;

import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import top.wxdfun.sqlwr.entity.User;
import top.wxdfun.sqlwr.mapper.UserMapper;

import java.util.List;

@Service
@AllArgsConstructor
public class UserServiceImpl implements IUserService {
    private UserMapper userMapper;

    @Override
    public List<User> listUser() {
        return userMapper.listUser();
    }

    @Override
    public boolean delUser(Integer id) {
        return userMapper.delUser(id) > 0;
    }
}
